import request from "@/utils/request";

/**
 * 获取优惠券列表
 * @param params
 * @returns
 */
export function getcouponlist(data) {
  return request({
    url: '/management/activity.activity_coupon/getList',
    method: 'post',
    data
  })
}

/**
 *  添加优惠券
 * @param params
 * @returns
 */
export function addCoupon(data) {
  return request({
    url: '/management/activity.activity_coupon/add',
    method: 'post',
    data
  })
}

/**
 * 删除优惠券
 * @param params
 * @returns
 */
export function delCoupon(data) {
  return request({
    url: '/management/activity.activity_coupon/del',
    method: 'post',
    data
  })
}

/**
 * 主动下架优惠券
 * @param params
 * @returns
 */
  export function takeDownCoupon(data) {
  return request({
    url: '/management/activity.activity_coupon/takeDown',
    method: 'post',
    data
  })
}

/**
 * 导出优惠券码
 * @param params
 * @returns
 */
export function exportCode(data) {
  return request({
    url: '/management/activity.activity_coupon_used/exportCode',
    method: 'post',
    data
  })
}

/**
 * 导出优惠券使用报表
 * @param params
 * @returns
 */
export function exportUsedList(data) {
  return request({
    url: '/management/activity.activity_coupon_used/exportUsedList',
    method: 'post',
    data
  })
}

/**
 * 生成随机码
 * @param params
 * @returns
 */
export function addCouponCode(data) {
  return request({
    url: '/management/activity.activity_coupon_used/add',
    method: 'post',
    data
  })
}

/**
 * 修改优惠券
 * @param params
 * @returns
 */
export function updateCouponCode(data) {
  return request({
    url: '/management/activity.activity_coupon/update',
    method: 'post',
    data
  })
}

/**
 * 查询一条优惠券信息
 * @param params
 * @returns
 */
export function getFindCoupon(data) {
  return request({
    url: '/management/activity.activity_coupon/getFind',
    method: 'post',
    data
  })
}

/**
 * 获取优惠券使用记录列表
 * @param params
 * @returns
 */
export function getcoupon_Used(data) {
  return request({
    url: '/management/activity.activity_coupon_used/getList',
    method: 'post',
    data
  })
}

/**
 * 添加提货码活动
 * @param params
 * @returns
 */
export function addActivityPick(data) {
  return request({
    url: '/management/activity.activity_pick/add',
    method: 'post',
    data
  })
}

/**
 * 修改提货码活动
 * @param params
 * @returns
 */
export function updateActivityPick(data) {
  return request({
    url: '/management/activity.activity_pick/update',
    method: 'post',
    data
  })
}

/**
 * 获取取货码活动列表
 * @param params
 * @returns
 */
export function getActivityPickList(data) {
  return request({
    url: '/management/activity.activity_pick/getList',
    method: 'post',
    data
  })
}

/**
 * 删除取货码活动
 * @param params
 * @returns
 */
export function delActivityPick(data) {
  return request({
    url: '/management/activity.activity_pick/del',
    method: 'post',
    data
  })
}

/**
 * 提货码主动下架
 * @param params
 * @returns
 */
export function takeDownActivityPick(data) {
  return request({
    url: '/management/activity.activity_pick/takeDown',
    method: 'post',
    data
  })
}

/**
 * 获取一条取货码活动信息
 * @param params
 * @returns
 */
export function getFindActivityPick(data) {
  return request({
    url: '/management/activity.activity_pick/getFind',
    method: 'post',
    data
  })
}

/**
 * 生成取货码列表
 * @param params
 * @returns
 */
export function addActivityPickCode(data) {
  return request({
    url: '/management/activity.activity_pick_code/add',
    method: 'post',
    data
  })
}

/**
 * 获取提货码使用记录列表
 * @param params
 * @returns
 */
export function getActivityPickCodeList(data) {
  return request({
    url: '/management/activity.activity_pick_code/getList',
    method: 'post',
    data
  })
}

/**
 * 修改提货码信息
 * @param params
 * @returns
 */
export function updateActivityPickCode(data) {
  return request({
    url: '/management/activity.activity_pick_code/update',
    method: 'post',
    data
  })
}

/**
 * 删除提货码信息
 * @param params
 * @returns
 */
export function delActivityPickCode(data) {
  return request({
    url: '/management/activity.activity_pick_code/del',
    method: 'post',
    data
  })
}

/**
 * 导出未使用提货码
 * @param params
 * @returns
 */
export function exportActivityPickCode(data) {
  return request({
    url: '/management/activity.activity_pick_code/exportCode',
    method: 'post',
    data
  })
}

/**
 * 导出提货码使用记录列表
 * @param params
 * @returns
 */
export function exportActivityPickCodeList(data) {
  return request({
    url: '/management/activity.activity_pick_code/exportUsedList',
    method: 'post',
    data
  })
}
/**
 * 获取满减满送活动列表
 * @param params
 * @returns
 */
export function getactivityFd_used(data) {
  return request({
    url: '/management/activity.activity_fd_used/getList',
    method: 'post',
    data
  })
}

/**
 * 查询满减满送活动列表
 * @param params
 * @returns
 */
export function getactivityfdList(data) {
  return request({
    url: '/management/activity.activity_fd/getList',
    method: 'post',
    data
  })
}

/**
 * 查询单条满减满送活动
 * @param params
 * @returns
 */
export function getactivityfdFind(data) {
  return request({
    url: '/management/activity.activity_fd/getFind',
    method: 'post',
    data
  })
}

/**
 * 添加满减满送活动
 * @param params
 * @returns
 */
export function addactivityfd(data) {
  return request({
    url: '/management/activity.activity_fd/add',
    method: 'post',
    data
  })
}

/**
 * 修改满减满送活动
 * @param params
 * @returns
 */
export function updateactivityfd(data) {
  return request({
    url: '/management/activity.activity_fd/update',
    method: 'post',
    data
  })
}

/**
 * 删除满减满送活动
 * @param params
 * @returns
 */
export function delactivityfd(data) {
  return request({
    url: '/management/activity.activity_fd/del',
    method: 'post',
    data
  })
}

/**
 * 下架满减满送活动
 * @param params
 * @returns
 */
export function takeDownactivityfd(data) {
  return request({
    url: '/management/activity.activity_fd/takeDown',
    method: 'post',
    data
  })
}

/**
 * 导出满减满送活动报表
 * @param params
 * @returns
 */
export function exportfdUsed(data) {
  return request({
    url: '/management/activity.activity_fd_used/exportUsed',
    method: 'post',
    data
  })
}

/**
 * 查询付费抽奖列表
 * @param params
 * @returns
 */
export function getlotteryList(data) {
  return request({
    url: '/management/activity.activity_lottery/getList',
    method: 'post',
    data
  })
}

/**
 * 查询一条付费抽奖信息
 * @param params
 * @returns
 */
export function getlotteryFind(data) {
  return request({
    url: '/management/activity.activity_lottery/getFind',
    method: 'post',
    data
  })
}

/**
 * 添加付费抽奖
 * @param params
 * @returns
 */
export function addlottery(data) {
  return request({
    url: '/management/activity.activity_lottery/add',
    method: 'post',
    data
  })
}

/**
 * 修改付费抽奖
 * @param params
 * @returns
 */
export function updatelottery(data) {
  return request({
    url: '/management/activity.activity_lottery/update',
    method: 'post',
    data
  })
}

/**
 * 下架付费抽奖
 * @param params
 * @returns
 */
export function takeDownlottery(data) {
  return request({
    url: '/management/activity.activity_lottery/takeDown',
    method: 'post',
    data
  })
}

/**
 * 查询抽奖活动使用记录
 * @param params
 * @returns
 */
export function getlotusedList(data) {
  return request({
    url: '/management/activity.activity_lottery_used/getList',
    method: 'post',
    data
  })
}

/**
 * 获取抽奖使用活动商品列表
 * @param params
 * @returns
 */
export function getGoodslotusedList(data) {
  return request({
    url: '/management/activity.activity_lottery_used/getGoodsList',
    method: 'post',
    data
  })
}

/**
 * 导出付费抽奖使用列表
 * @param params
 * @returns
 */
export function exportlotteryAlUsed(data) {
  return request({
    url: '/management/activity.activity_lottery_used/exportAlUsed',
    method: 'post',
    data
  })
}